pack = {};
var pWin = window.parent;
/**
 * 打包中的常量
 * @type 
 */
pack.consts = {
	actionType : {
		"100" : "订购",
		"101" : "加入"
	},
	CONST_OFFER_PROD_OBJ_TYPE : 2,
	CONST_OFFER_OBJ_TYPE : 7,
	CONST_Add_ACTION_TYPE_CD : 101,//加入,
	CONST_EXTRAL_PARAM_TYPES : ['P01','P02','P03','P04','P05'],
	//事件名称
	EVENT_NAMES : {
		//已有账号选择组件给号码组件抛的事件
		choose_old_account : 'events_name_choose_acount_from_win',
		choose_password : 'events_name_choose_password_from_win',
		choose_addr : 'events_name_after_choose_addr',
		choose_account : 'events_name_after_choose_account',
		//导航栏组件重置事件
		navigation_reset : 'events_name_navigation_reset',
		//导航栏组件隐藏li事件
		navigation_hideLi : 'events_name_navigation_hideLi'
	}
};
/**
 * 打包中的全局变量
 * @type 
 */
pack.gPackInfo = {
	baseInfo : {
		//客户群
		segmentId : '',
		"staffId": "",
		//营业员的地区ID
		staffAreaId : '',
		channelId : '',
		//安装地区ID
		areaId : '',
		partyId : ''
	},
	currPageId : 1,
	"packId": "",
    "packName": "",
    "packDesc": "",
    "packCode": "",
    //额外需要处理的参数列表
    extralParams : [],
    setBaseInfo : function(_obj){
    	this.baseInfo = pWin.cloneJson(_obj);
    },
    resetAll : function(){
    	this.baseInfo = {};
    	this.currPageId = 1;
    	this.packId = '';
    	this.packName = '';
    	this.packDesc = '';
    	this.packCode = '';
    }
};
